package com.zfc.mymall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zfc.common.utils.PageUtils;
import com.zfc.mymall.product.entity.CategoryEntity;
import com.zfc.mymall.product.vo.Catelog2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author zfcer
 * @email scmail@mail.ustc.edu.cn
 * @date 2021-12-08 11:35:41
 */
public interface CategoryService extends IService<CategoryEntity> {

  PageUtils queryPage(Map<String, Object> params);

  List<CategoryEntity> listWithTree();

  void removeMenuByIds(List<Long> catIds);

  /**
   * 找到catalogId 完整路径
   */
  Long[] findCateLogPath(Long catelogId);

  /**
   * 级联更新所有数据
   */
  void updateCascade(CategoryEntity category);

  //List<CategoryEntity> getLevel1Categorys();
  //
  //Map<String, List<Catelog2Vo>> getCatelogJson();
}

